package org.njo.webapp.templates.config;

import java.util.LinkedHashMap;
import java.util.Map;

public class TemplatesConfig {

    private String id = null;
    private Map<String, PatternConfig> patterns = new LinkedHashMap<String, PatternConfig>();
    private Map<String, FormatterConfig> formatters = new LinkedHashMap<String, FormatterConfig>();
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void addPatternConfig(PatternConfig config) {
        patterns.put(config.getId(), config);
    }
    
    public Map<String, PatternConfig> getPatterns() {
        return patterns;
    }

    public void addFormatterConfig(FormatterConfig config) {
        formatters.put(config.getId(), config);
    }
    
    public Map<String, FormatterConfig> getFormatters() {
        return formatters;
    }

}
